export const AMAP_KEY = import.meta.env.VITE_AMAP_KEY;

const TIANDITU_KEY_1 = import.meta.env.VITE_TIANDITU_KEY_1;
const TIANDITU_KEY_2 = import.meta.env.VITE_TIANDITU_KEY_2;
export const TIANDITU_KEY = Math.random() < 0.5 ? TIANDITU_KEY_1 : TIANDITU_KEY_2;

export const MAP_IMG = `https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&tk=${TIANDITU_KEY}&x={x}&y={y}&l={z}`;
export const MAP_VEC = `https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&tk=${TIANDITU_KEY}&x={x}&y={y}&l={z}`;
export const MAP_CIA = `https://t{0-7}.tianditu.gov.cn/DataServer?T=cia_w&tk=${TIANDITU_KEY}&x={x}&y={y}&l={z}`;
export const MAP_CVA = `https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&tk=${TIANDITU_KEY}&x={x}&y={y}&l={z}`;

export const STATION_MAP = `https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&tk=${TIANDITU_KEY}&x={x}&y={y}&l={z}`;
export const STATION_DATA = `https://t{0-7}.tianditu.gov.cn/DataServer?T=cia_w&tk=${TIANDITU_KEY}&x={x}&y={y}&l={z}`;
